#include <iostream>
#define N 100

using namespace std;

int main( )
{
    char a[N];
    int i=0,j,n,k=0;

    scanf("%s",a);

    while(a[i]!='\0') i++;
    cout<<i<<endl;
    
    if((i)%2==0) n=(i)/2;
    else n=(i-1)/2;

    for (j=0;j<n;j++)
    {
        if(a[j]!=a[i-j-1])  k=1;
    }

    if(k==0) cout<<"this string is symmetry"<<endl;
    else cout<<"this string is not symmetry"<<endl;

    cin>>k;
    return 0;
}
